#ifndef _CANIMATION_H
#define _CANIMATION_H

#include <SDL/SDL.h>
#include "defs.h"

class CAnimation {

	private:
		int currentFrame;
		int frameInc;
		int frameRate;
		long oldTime;

	public:
		CAnimation();

		int maxFrames;
		bool oscillate;

		void OnAnimate();
		void setFrameRate(int rate);
		void setCurrentFrame(int frame);
		int  getCurrentFrame();

};

#endif
